updating oE from_unix
from_unix
include datetime.e -- (default namespace is datetime) public function from_unix(atom unix)
Creates a datetime value from the Unix numeric format (seconds since EPOCH).
Parameters:
- unix : an atom, counting seconds elapsed since EPOCH.
Returns:
A sequence, more precisely a datetime representing the same moment in time.
Example 1:
include std/datetime.e datetime d = from_unix(0) -- zero seconds since EPOCH ? d
Results:
{1970,1,1,0,0,0}
See Also:
Not Categorized, Please Help
|